package com.lse_api.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 项目
 * </p>
 *
 * @author 祁雪
 * @since 2020-05-11
 */
@Getter
@Setter
public class Project implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 项目名称
     */
    private String projectName;

    /**
     * 项目简介
     */
    private String projectInfo;

    /**
     * 项目创建者
     */
    private String projectCreate;

    /**
     * 项目创建日期
     */
    private Date createTime;

    /**
     * 用户信息
     */
    @TableField(exist = false)
    private UserInfo userInfo;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getProjectInfo() {
        return projectInfo;
    }

    public void setProjectInfo(String projectInfo) {
        this.projectInfo = projectInfo;
    }

    public String getProjectCreate() {
        return projectCreate;
    }

    public void setProjectCreate(String projectCreate) {
        this.projectCreate = projectCreate;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Project{" +
                "id=" + id +
                ", projectName=" + projectName +
                ", projectInfo=" + projectInfo +
                ", projectCreate=" + projectCreate +
                ", createTime=" + createTime +
                "}";
    }
}
